/**
 * Created by lijing on 2016-07-11.
 */
function showMessage(item,data,msg){
    if(data&&!data.success){
        msg=data.msg?data.msg:msg;
    }
    if(item){
        var d = dialog({
            quickClose: true,
            content: msg
        }).show(item);
    }
    else{
        var d = dialog({
            quickClose: true,
            content: msg
        }).show();
    }
}

function showDialogMessage(msg){
    var d = dialog({
        quickClose: true,
        content: msg
    }).show();
}